package com.zmj.sy.mom.srv.aps.mapper;

import com.zmj.sy.mom.srv.aps.bean.entity.order.ApsBatch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ApsBatchMapper extends SyMapper<ApsBatch>{

    @Select(" delete from tb_aps_batch where status = 1 and id <> #{id}")
    void deleteNoPub(@Param("id") Integer id);

    @Select(" delete from tb_aps_batch where id = #{id}")
    void deleteData(@Param("id") Integer id);
}
